package com.project_doctor.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @TableName t_personal_profile
 */
@TableName(value ="t_personal_profile")
public class PersonalProfile {
    @TableId(value = "id",type = IdType.AUTO) // 明确指定主键字段
    private Long id;
    private String username;
    private String doctorAvatar;
    private String doctorName;
    private Long doctorRoleId;
    private String gender;
    private String doctorIntro;
    private String doctorExpertise;
    private String password;
    private String phone;
    private Integer state;

    @TableField(exist = false)
    private Role role;
}